From: Ian Campbell Date: Tue, 21 Jul 2015 15:00:19 +0000 (+0100) Subject: tools: libxl: Refix "Initialise the fd of the unused half of a datacopier" X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2736 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=1287ac109c44ca9b99eb642316d7af83b4081b52;p=xen.git tools: libxl: Refix "Initialise the fd of the unused half of a datacopier" Applying the series out of order led to d72befc35f31 "tools/libxl: Identify copywhat in stream v2 datacopiers" unintentionally reverting part of 21d9b079e538 "tools/libxl: Initialise the fd of the unused half of a datacopier". Put this back. Reported-by: Andrew Cooper Signed-off-by: Ian Campbell --- diff --git a/tools/libxl/libxl_stream_read.c b/tools/libxl/libxl_stream_read.c index 3e1cd2aba5..32a35518e0 100644 --- a/tools/libxl/libxl_stream_read.c +++ b/tools/libxl/libxl_stream_read.c @@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc, dc->writewhat = "qemu save file"; dc->copywhat = "restore v2 stream"; dc->writefd = writefd; + dc->readfd = -1; dc->maxsz = -1; dc->callback = write_emulator_done;